home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5796 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: CHIP RAM speed test results
  5. Date: 20 Mar 1996 09:43:29 +0100
  6. Organization: dis-
  7. Message-ID: <4iogfh$e6i@serpens.rhein.de>
  8. References: <38232981@kone.fipnet.fi> <4ico8k$2vau@columba.udac.uu.se> <42116651@phoenix.owl.de>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. "Frank Wille" <frank@phoenix.owl.de> writes:
  12.  
  13. >With my 68040/25MHz I'm getting the following results:
  14.  
  15. >move.l  (a0)+,(a1)+     ->      3.99 MB/sec
  16. >move16  (a0)+,(a1)+     ->      5.91 MB/sec
  17.  
  18. >So MOVE16 is 50% faster, although the A3640 doesn't support burst
  19. >transfers.
  20.  
  21. Sure. The MOVE16 instruction bypasses the cache. With move.l and copyback cache
  22. every _write_ to memory is done to the cache. This first causes a _write_ if that
  23. cache line was modified (true for most of the writes in the copy loop) and then
  24. an _additional read_ because the write just modifies a single long word and the
  25. rest of the cache line has to be updated from memory. So the move.l loop effectively
  26. does read the source, read the destination and write the destination while the
  27. move16 does only read source and write destination.
  28.  
  29. This is exactly why the move16 was implemented, to avoid the cost of the copyback
  30. cache when doing bulk copies. Unfortunately it requires that source and destination
  31. are properly aligned, something that is difficult to achieve under AmigaOS.
  32.  
  33. Regards,
  34. -- 
  35.                                 Michael van Elst
  36.  
  37. Internet: mlelstv@serpens.rhein.de
  38.                                 "A potential Snark may lurk in every tree."
  39.